from django.db import models
from utils.models import CoreModel   


class Ordertype(CoreModel):
    order_type = models.IntegerField(primary_key=True, help_text="号码范围ID", verbose_name="号码范围ID")
    range_id = models.IntegerField(null=True, blank=True,  verbose_name='号码范围ID', help_text='号码范围ID')
    name = models.CharField(null=True, blank=True, max_length=16, verbose_name='名称', help_text='名称')

    class Meta:
        db_table = 'ordertype'
        verbose_name = '订货类型'
        verbose_name_plural = verbose_name
        ordering = ('-creation_on',)
    